package ezonsport.android.core.stepSystem;

import java.util.Date;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * 运动计划
 * 
 * @author Administrator chenbei
 * @since 2012-6-8
 * 
 */
@DatabaseTable(tableName = "T_SportPlan")
public class SportPlan {
	@DatabaseField(generatedId = true)
	private long sportPlanID;// 运动计划ID，惟一
	@DatabaseField
	private Date formulateTime;// 制订计划时间
	@DatabaseField
	private int goalStep;// 目标步数

	// @DatabaseField(foreign = true)
	// private Watch watch; // 关联手表

	public long getSportPlanID() {
		return sportPlanID;
	}

	public void setSportPlanID(long sportPlanID) {
		this.sportPlanID = sportPlanID;
	}

	public Date getFormulateTime() {
		return formulateTime;
	}

	public void setFormulateTime(Date formulateTime) {
		this.formulateTime = formulateTime;
	}

	public int getGoalStep() {
		return goalStep;
	}

	public void setGoalStep(int goalStep) {
		this.goalStep = goalStep;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("SportPlan [sportPlanID=");
		builder.append(sportPlanID);
		builder.append(", formulateTime=");
		builder.append(formulateTime);
		builder.append(", goalStep=");
		builder.append(goalStep);
		builder.append("]");
		return builder.toString();
	}

}
